package pers.mihao.quickstream.publish.strategy.directory.filter;

import pers.mihao.quickstream.account.model.vo.Account;
import pers.mihao.quickstream.publish.strategy.context.ChooseContext;

import java.util.List;

/**
 * @author mihao
 * @since 2024/11/24
 */
public interface AccountDirectoryFilter {

    default boolean match(ChooseContext chooseContext) {
        return true;
    }

    default int sort() {
        return Integer.MAX_VALUE;
    }

    List<Account> filter(List<Account> accounts);

}
